{template('../public/header.html')}

<style>
table td { word-break: break-all; }
.explain_col a { color: #50B08C; }
.explain_col a.on { color: #008EBD; }
</style>

<form id="info_form" action="{:u(module_name & '/' & action_name)}" method="post" enctype="multipart/form-data">
<div class="pad_10">

    <table width="100%" cellspacing="0" class="search_form">
        <tbody>
            <tr>
            <td>
            <div class="explain_col">
            	<a href="{:u(module_name & '/index')}"{if action_name='index'} class="on"{/if}>查看信息</a> &nbsp;&nbsp;  |  &nbsp;&nbsp;
            	<a href="{:u(module_name & '/config')}"{if action_name='config'} class="on"{/if}>基本设置</a>
        	</div>
            </td>
            </tr>
        </tbody>
    </table>

	<div class="col_tab">
		<ul class="J_tabs tab_but cu_li">
			<li class="current">基本设置</li>
		</ul>
		<div class="J_panes">
			<div class="content_list pad_10">
				<table width="100%" cellspacing="0" class="table_form">
		            <tr>
						<th>是否开启防注入：</th>
						<td>
							<select name="status">
								<option value="1" {if rs("status")=1}selected="selected"{/if}>是</option>
								<option value="0" {if rs("status")=0}selected="selected"{/if}>否</option>
							</select>
						</td>
					</tr>
		            <tr>
						<th>需要过滤的关键字：</th>
						<td>
		                	<input type="text" name="filter" id="filter" class="input-text" size="90" value="{$rs('filter')}" />
		                </td>
					</tr>
		            <tr>
						<th>是否记录入侵者信息：</th>
						<td>
							<select name="makelog">
								<option value="1" {if rs("makelog")=1}selected="selected"{/if}>是</option>
								<option value="0" {if rs("makelog")=0}selected="selected"{/if}>否</option>
							</select>
						</td>
					</tr>
		            <tr>
						<th>是否开启锁定IP：</th>
						<td><input value="1" type="checkbox" name="kill_ip" id="kill_ip" {if rs("kill_ip")=1}checked="checked"{/if} /></td>
					</tr>
		            <tr>
						<th>是否启用安全表单：</th>
						<td>
							<select name="secure_form_open">
								<option value="1" {if rs("secure_form_open")=1}selected="selected"{/if}>是</option>
								<option value="0" {if rs("secure_form_open")=0}selected="selected"{/if}>否</option>
							</select>
						</td>
					</tr>
		            <tr>
						<th>您认为安全的表单：</th>
						<td>
		                	<input type="text" name="secure_forms" id="secure_forms" class="input-text" size="90" value="{$rs('secure_forms')}" />
		                </td>
					</tr>
		            <tr>
						<th>是否启用安全模块：</th>
						<td>
							<select name="secure_module_open">
								<option value="1" {if rs("secure_module_open")=1}selected="selected"{/if}>是</option>
								<option value="0" {if rs("secure_module_open")=0}selected="selected"{/if}>否</option>
							</select>
						</td>
					</tr>
		            <tr>
						<th>您认为安全的模块：</th>
						<td>
							<textarea rows="5" cols="90" name="secure_modules" id="secure_modules">{$rs('secure_modules')}</textarea>
							<br />（各个模块用;号或换行符隔开，格式举例：admin:*; index/*; handle; 等）
		                </td>
					</tr>
		            <tr>
						<th>出错后的处理方式：</th>
						<td>
							<select name="handle_type" id="handle_type">
								<option value="1" {if rs("handle_type")=1}selected="selected" style="background:#92C2D9"{/if}>直接关闭网页</option>
								<option value="2" {if rs("handle_type")=2}selected="selected" style="background:#92C2D9"{/if}>警告后关闭</option>
								<option value="3" {if rs("handle_type")=3}selected="selected" style="background:#92C2D9"{/if}>跳转到指定页面</option>
								<option value="4" {if rs("handle_type")=4}selected="selected" style="background:#92C2D9"{/if}>警告后跳转</option>
							</select>
						</td>
					</tr>
		            <tr>
						<th>出错后跳转Url：</th>
						<td>
		                	<input type="text" name="alert_url" id="alert_url" class="input-text" size="90" value="{$rs('alert_url')}" />
		                </td>
					</tr>
		            <tr>
						<th>警告提示信息：</th>
						<td>
							<textarea rows="5" cols="90" name="alert_info" id="alert_info">{$rs('alert_info')}</textarea>
		                </td>
					</tr>
		            <tr>
						<th>阻止访问提示信息：</th>
						<td>
							<textarea rows="5" cols="90" name="kill_info" id="kill_info">{$rs('kill_info')}</textarea>
		                </td>
					</tr>
				</table>
			</div>
        </div>
		<div class="mt10"><input type="submit" value="{:L('submit')}" id="dosubmit" name="dosubmit" class="btn btn_submit" style="margin:0 0 10px 100px;"><br /><br /><br /></div>
	</div>
</div>
<input type="hidden" name="menuid"  value="{$menuid}"/>
<input type="hidden" name="id" id="id" value="{$rs("id")}" />
</form>
{template('../public/footer.html')}
</body>
</html>